<template>
  <div>
    <show-basicZwShow v-if="showBasicZwShow" ref="dialogBasicZw" @reloadZwlb="initItemZwlb" @getA01ListInfo="getA01ListNew"/>
  </div>
</template>

<script>
export default {
methods:{
  getA01List(itemList) {
  this.loading = true;
  const params = {
    "AS0119":this.young,//优秀年轻干部
    "AS0180":this.gird,//女干部标记
    "AS0181":this.nation, //少数民族标记
    "AS0182":this.outside,//党外干部标记
    "AS0106":this.returned,//归侨侨眷
    "idCard":this.a0184,//传入身份证号
  }
  getA01ByA0000(params).then(result => {
    let dataData = result.resultdata.A36;
    let dataA01List = result.resultdata.a01[0];
    let getA88List = result.resultdata.A88;
    let getA02List = result.resultdata.a02;
    this.person.a36s = dataData // 将家庭人员信息赋值
    this.dataA01List = dataA01List;//详情数据
    this.getA88List = getA88List;//简历
    this.getA02List = getA02List;//职务具体类别
    


    let dataListItem = result.resultdata.a01List;
    this.dataListItem = dataListItem;
    if (result.result){
    

      this.person.AG0140 = itemList.includes('AG0140') ? this.dataA01List.ag0140 : ''
      this.add.addAG0148 = this.dataA01List.ag0148
      this.checkAG0161Key = [];
      if (this.dataA01List.ag0161 != null) {
          const ag0161List = this.dataA01List.ag0161.split(',')
          for (let i = 0; i < ag0161List.length; i++) {
              this.checkAG0161Key.push(ag0161List[i])
          }
      }
      this.initItemZwlb(params);//职务具体类别
      this.findA02();//职务具体类别
      this.getA88();//简历
      this.getA01ListNew();
      this.loading = false;
    }
    // this.loading = false;
  })
},



getA01ListNew(){
      this.loading = true;
      this.person.a0192a = this.dataListItem.a02;
      this.person.a15z101 = this.dataListItem.a15;
      this.person.AG0143 = this.dataListItem.a89;
      this.person.AG0132 = this.dataListItem.ag90;
      this.person.AG0129 = this.dataListItem.ag91;
      this.person.AG0131 = this.dataListItem.ag92;
      this.person.AG0130 = this.dataListItem.ag94;
      this.person.AG0144 = this.dataListItem.ag95;
      this.person.AS0175 = this.dataListItem.ag96;
      this.person.a0196 =  this.dataListItem.a06;
      this.person.zwjtlb = this.dataListItem.a02lb
      this.loading = false;
},
}
}
</script>

<style>

</style>